package util

import (
	"fmt"
	"io/ioutil"
	"net/http"
)

//get请求方法
func GetReq(url string) string {
	resp, err := http.Get(url)
	if nil != err {
		fmt.Println("请求失败...")
	}
	body, err := ioutil.ReadAll(resp.Body)
	if nil != err {
		fmt.Println("请求失败...")
	}
	return string(body)
}
